﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="StudentInfo.aspx.cs" Inherits="com.orange.examination.WebForm2" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <meta name="viewport" content="width=device-width" />
    <link rel="stylesheet" href="css/StudentInfo.css" />
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
            <fieldset class="FieldSet">
                <legend class="Legend">考生基本信息</legend>

                <div class="middle">
                <span>查询条件: </span>

                <asp:DropDownList ID="ddlType" runat="server" >
                    <asp:ListItem Selected="True">学号</asp:ListItem>
                    <asp:ListItem>姓名</asp:ListItem>
                </asp:DropDownList>

                <span>关键字: </span>

                <asp:TextBox ID="txtKey" runat="server"></asp:TextBox>

                <asp:Button ID="btnserch" runat="server" OnClick="btnserch_Click" Text="查看" />
                </div>

                <div class="bottom">
                <asp:GridView ID="gvStuInfo" runat="server" AllowPaging="True" AutoGenerateColumns="False" CellPadding="2" OnPageIndexChanging="gvStuInfo_PageIndexChanging" OnRowDeleting="gvStuInfo_RowDeleting" PageSize="5" >
                    <Columns >
                        <asp:BoundField DataField="StudentNum" HeaderText="学号" />
                        <asp:BoundField DataField="StudentName" HeaderText="姓名" />
                        <asp:BoundField DataField="StudentPwd" HeaderText="密码" />
                        <asp:BoundField DataField="StudentSex" HeaderText="性别" />
                        <asp:TemplateField HeaderText="删除" ShowHeader="False">
                            <ItemTemplate>
                                <asp:LinkButton ID="LinkButton1" runat="server" CausesValidation="False" CommandName="Delete" Text="删除" OnClientClick="return confirm('确认要删除吗？');"></asp:LinkButton>
                            </ItemTemplate>
                        </asp:TemplateField>

                        <asp:HyperLinkField DataNavigateUrlFields="ID" DataNavigateUrlFormatString="ChangeStudentInfo.aspx?id={0}" HeaderText="修改" Text="修改信息" />
                    </Columns>
                    <RowStyle ForeColor="#000066" Height="15px" HorizontalAlign="Center" VerticalAlign="Middle" />
                    <SelectedRowStyle BackColor="#669999" Font-Bold="True" ForeColor="White" />
                    <PagerStyle BackColor="White" ForeColor="#000066" HorizontalAlign="Center" />
                    <HeaderStyle BackColor="Transparent" Font-Bold="False" ForeColor="Black" Height="15px" />
                    <FooterStyle BackColor="Transparent" />
                </asp:GridView>
                </div>
                <br />
            </fieldset>
    </form>
</body>
</html>